package com.waitingresult.demo.enums;


/**
 * @Author: WangShuai
 * @CreateTime: 2023/5/18  11:28
 * @Description:
 * @Version: 1.0
 */
public enum SexEnums implements BaseEnum{
    WOMAN(0, "女"),
    MAN(1, "男"),
    UNKNOWN(2, "未知"),
    ;

    Integer id;

    String desc;

    SexEnums(){}
    SexEnums(int id, String desc) {
        this.id = id;
        this.desc = desc;
    }


    @Override
    public String toString() {
        return "SexEnums{" +
                "id=" + id +
                ", desc='" + desc + '\'' +
                '}';
    }

    @Override
    public String getCode() {
        return String.valueOf(id);
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

}
